package com.example.back.dao;

import com.example.back.bean.GroupUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface GroupDao {

    @Select("select groupId from t_group where groupName=#{userId} ORDER BY createdTime desc limit 1")
    public GroupUser selectId(int userId);

    @Update("update user_inf set level = #{num} where userId=#{userId}")
    int updateLevel(int num,long userId);

//    @Insert("")
//    public int insert();
}
